package net.bongke.provider.create.exception;

import net.bongke.provider.commom.exception.BaseErrorCodeEnum;

/**
 * @author 戴辉辉
 * @version 1.0
 */
public enum CreateErrorCodeEnum implements BaseErrorCodeEnum {

    /**
     * 创作中心错误码101开头 todo
     */
    USER_ID_IS_NULL("101001", "用户ID不能为空"),
    CREATE_TYPE_ERROR("101002", "创作类型错误");

    private String errorCode;

    private String errorMsg;

    CreateErrorCodeEnum(String errorCode, String errorMsg) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

    @Override
    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    @Override
    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

}